import parole
from parole.colornames import colors
from parole.display import interpolateRGB
import pygame, random

import sim, main
from util import *
from dungeon import makeFloor, Room, TemplateRoom
import dungeon

template = \
"""
#########
#       #
# ooooo #  
# ooooo #
# ooeoo #
# ooOoo #
# oo]oo #
# oo oo #
# o   o #
# o   o #
# oo  o #
# o ooo #
#       #
#       #
#       #
#       #
#########
"""[1:]

legend = {
    'e':    dungeon.thingGenerator('monsters', 'bloodshoteye'),

    'w':    dungeon.thingGenerator('monsters', 'burrowingworm'),

    ']':    dungeon.thingGenerator('armor', 'spidergloves'),

    'o':    parole.map.MapObjectGenerator("", 
            lambda: sim.Obj('a pillar engraved with lidless eyes', 100, parole.map.AsciiTile('o',
                colors['DimGray']),
                blockMove=True, blockLOS=True), clearFirst=False),

    'O':    parole.map.MapObjectGenerator("", 
            lambda: sim.Obj('an eye-shaped grate', 100, parole.map.AsciiTile('o',
                colors['DimGray']),
                blockMove=True, blockLOS=False), clearFirst=False),

    '#':    dungeon.rockGenerator(colors['DimGray']),
}

floorColor1 = colors['SandyBrown']
floorColor2 = colors['SaddleBrown']
floorName = 'dirt floor'
mixture = 0.7

diggable = [
    (4,16),  
]

class EyeVault(TemplateRoom):
    def __init__(self, pos):
        TemplateRoom.__init__(self, template, legend, diggable, pos,
                floorColor1, floorColor2, mixture, floorName)


roomClass = EyeVault


